			<div id="tz_tab_widget-2" class="widget tz_tab_widget">
				<div id="tabs">
					<ul id="tab-items">
						<li class="active"><a href="#tabs-1"><span>Popular</span></a></li><li><a href="#tabs-2"><span>Recent</span></a></li>
                                        </ul>
                                        <div class="tabs-inner">
						
						
                                          <div id="tabs-1" class="tab tab-popular">
                                            <ul>
                                              
                                              <% @popular.each do |video| %>
                                              
						<li class="clearfix">
                                                  <div class="tab-thumb">
						    <a href="" class="thumb">
                                                      <img width="55" height="55" src="<%= url_for({:controller => 'videos', :action => 'thumbnail', :id => video.id}) %>" class="attachment-post-thumbnail wp-post-image" alt="<%= video.title %>" title="<%= video.title %>" />
                                                    </a>
						  </div>
						  <h3 class="entry-title"><a href="<%= url_for({:controller => 'videos', :action => 'details', :id => video.id}) %>" class="title">
							<%= if video.title.length >= 25 then truncate(video.title.gsub(/<\/?[^>]*>/, ""), :length => 25, :separator => ' ') else video.title end %>
						  </a></h3>

							<div class="entry-meta entry-header">
								By <%= video.user.profile.name %><br />
								<span class="published"><%= video.created_at.strftime("%B %d, %Y") %></span>
								<span class="meta-sep">&middot;</span>
								<span class="comment-count"><a href="" title="Comment on <%= video.title %>"><%= video.video_comments.count %> Comments</a></span>

							</div>
						</li>
					      
                                            <% end %>
                                            
                                            </ul>
                                          </div><!-- #tabs-1 -->
                                        
                                        
                                        <div id="tabs-2" class="tab tab-recent">
                                          <ul>
                                            
                                            <% @popular.each do |video| %>
                                              
						<li class="clearfix">
                                                  <div class="tab-thumb">
						    <a href="" class="thumb">
                                                      <img width="55" height="55" src="<%= url_for({:controller => 'videos', :action => 'thumbnail', :id => video.id}) %>" class="attachment-post-thumbnail wp-post-image" alt="<%= video.title %>" title="<%= video.title %>" />
                                                    </a>
						  </div>
						  <h3 class="entry-title"><a href="" class="title">
							<%= if video.title.length >= 25 then truncate(video.title.gsub(/<\/?[^>]*>/, ""), :length => 25, :separator => ' ') else video.title end %>
						  </a></h3>

							<div class="entry-meta entry-header">
								By <%= video.user.profile.name %><br />
								<span class="published"><%= video.created_at.strftime("%B %d, %Y") %></span>
								<span class="meta-sep">&middot;</span>
								<span class="comment-count"><a href="" title="Comment on <%= video.title %>"><%= video.video_comments.count %> Comments</a></span>

							</div>
						</li>
					      
                                            <% end %>
                                          
                                          
                                          </ul></div><!-- #tabs-2 -->
                                    
                                    
                                    
                                    
                                      
                                      
                                      
                                      
					
					
					</div><!-- .tabs-inner -->
				</div><!-- #tabs -->
			</div>